<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客评论</title>
    <th:block th:include="hander/navigation :: common(~{::links})"></th:block>
    <!--  js引入  -->
    <th:block th:include="/hander/navigation :: commonjs"></th:block>

</head>
<body class="after-body">
<!--  顶部导航栏  -->
<th:block th:replace="/hander/navigation :: navheader" ></th:block>
<div class="row body2 leftuserinfo">
<div class="col-md-12" style="margin: 25px 0 0 0;" >
<form id="blogForm">
<!--  右边区域  -->
    <div class="blog-title" id="adminblogright" style="float: right;">
        <!--     评论管理区域   -->
        <ul class="nav nav-tabs">
           <li class="fy active">
               <a href="#" onclick="window.location.reload()">我的文章评论<span th:text="|(${commentAdmins.getTotal()})|"></span></a>
           </li>
        </ul>
        <div>
            <!--    评论内容    -->
            <div style="margin-top: 15px;" >
                <th:block th:if="${commentAdmins != null || commentAdmins.pages != 0}" th:each="commentAdmin,commStat:${commentAdmins.getObjects()}">
                    <div style="height: auto;">
                        <div style="float: left;">
                            <img src="/images/index/1.png" class="img-circle" width="30px" height="30px" alt="用户头像" title="张三">&nbsp;
                            <span th:text="${commentAdmin.plzname}"></span>&emsp;
                            <span th:text="${#dates.format(commentAdmin.pltime,'yyyy-MM-dd HH:mm:ss')}"></span>&emsp;
                            <span>回复了你的文章
                               <span><a th:href="@{/essay/select-blogdetails(eid=${commentAdmin.eid})}"  style="color: #2aabd2"><span th:text="${commentAdmin.wztitle}"></span></a></span>
                            </span>
                        </div>
                        <div style="padding-left: 650px;margin-top: 10px;">
                            <div class="btn-group-sm">
                                <button type="button" class="btn btn-link" style="text-decoration: none;outline: none;">快速回复</button>
                                &boxv;
                                <button type="button" class="btn btn-link" style="text-decoration: none;outline: none;">删除</button>
                            </div>
                        </div>
                        <div style="margin-top: 10px;">&emsp;&emsp;&emsp;评语：<span th:text="${commentAdmin.wzpy}">4545456465465</span></div>
                        <div style="margin-top: 25px;border: 1px dashed #7f8087;width: available;"></div>
                    </div>
                </th:block>
                <th:block th:if="${commentAdmins == null || commentAdmins.pages == 0}">
                    <div style="height: auto;">
                        <h3>暂无评论</h3>
                    </div>
                </th:block>
            </div>
            <!--            分页          -->
            <div class="plq" style="text-align: center;">
                <ul class="pagination">
                    <li ><a th:href="@{/comment/pl-admin(page=${commentAdmins.getCurrent()} - 1 <= 0 ? 0: ${commentAdmins.getCurrent()},size=${commentAdmins.getSize()})}" >&laquo;</a></li>
                    <th:block th:each="i:${#numbers.sequence(1,commentAdmins.getPages())}">
                        <li class="" >
                            <a th:href="@{/comment/pl-admin(page=${i}-1,size=${commentAdmins.getSize()})}" th:text="${i}" >1</a>
                        </li>
                    </th:block>
                    <li ><a th:href="@{/comment/pl-admin(page=${commentAdmins.getCurrent()} + 1 >= ${commentAdmins.getPages()} ? ${commentAdmins.getPages()}-1 : ${commentAdmins.getCurrent()}  ,size=${commentAdmins.getSize()})}" >&raquo;</a></li>
                </ul>
            </div>
        </div>
    </div>
<!--  左侧个人类别区域  -->
    <div style="float: left;margin-bottom: 20px;" >
        <th:block th:replace="/hander/navigation :: adminBlog-left"></th:block>
    </div>
</form>
</div>
</div>
<style>
    .blog-title{
        width: 800px;
        height: auto;
    }
    .top-left{
        margin-top: 30px;
    }
</style>
</body>

</html>
